package com.jiyun.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author 聪哥哥
 * @since 2024-10-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Goods implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ExcelProperty("编号")
    private Integer id;

    @ExcelProperty("商品名称")
    private String name;


    @ExcelIgnore
    private Integer cid;


    @ExcelProperty("商品价格")
    private BigDecimal price;


    @ExcelProperty("商品特征")
    private String tz;


    @ExcelProperty("商品状态")
    private String state;


    @ExcelProperty("商品库存")
    private Integer num;



}
